package com.zhou.system.management.model.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xianfeng
 * @date 2023/5/20 23:24
 */
@Data
public class SysMenuTreeVo {

    private Long id;

    private String title;

    private String icon;

    private List<SysMenuTreeVo> child;

    public void addChild(SysMenuTreeVo children) {
        if (child == null) {
            child = new ArrayList<>();
        }
        child.add(children);
    }
}
